package cn.easy.rpc.view;

import cn.easy.rpc.core.RegistrationTable;
import cn.easy.rpc.core.ServiceRegistrar;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zwb
 * @create 2020-09-06 17:48
 **/
@RestController
public class RegistrationTableController {
    @RequestMapping("services")
    public List<ServiceRegistrar> getServices(){
        return RegistrationTable.getRegisterTable();
    }
}
